from django.db import models
from django.utils import timezone
# Create your models here.


class User(models.Model):
    id = models.AutoField(primary_key=True)
    photo = models.URLField(max_length = 256,blank = True,verbose_name='photo')
    openid = models.CharField(default="",max_length=50,blank=True, null = True, verbose_name="openid")
    name = models.CharField(max_length=20,verbose_name='name')
    phone = models.IntegerField(verbose_name='phone')
    power = models.IntegerField(default=1,verbose_name='power')
    emall = models.CharField(max_length=20,verbose_name='emall')
    times = models.DateTimeField(verbose_name='times',null=True)

class Orders(models.Model):
    id = models.AutoField(primary_key=True)
    uid = models.CharField(default="",max_length=50,blank=True, null = True, verbose_name="uid")
    wid = models.CharField(default="",max_length=50,blank=True, null = True, verbose_name="wid")
    times = models.DateTimeField(verbose_name='times',null=True)

class BasicDate(models.Model):
    id = models.AutoField(primary_key=True)
    NUMS = models.IntegerField(verbose_name='NUMS')

